<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">

    <!--引入css-->
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" href="../static/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="../app/css/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <style>
        .textCenter {
            text-align:center;/*将文字水平居中*/
            line-height:0px
        }
    </style>
</head>
<body>

<div id="loadingText" class="bg-info">
    <h2 class="textCenter text-info" id="loadingInfo">分配节点过程中出现了一些错误...</h2>
</div>
<script src="../static/jquery/2.2.4/jquery.min.js"></script>
<script>
    $(document).ready(function() {
        //alert(0.5 * window.screen.availHeight);
        document.getElementById("loadingInfo").style.setProperty('line-height', 0.5 * window.screen.availHeight + "px");//将文字垂直居中
        if(window.location.href.indexOf("?") != -1) {
            var errorText = window.location.href.split("?")[1].split("=")[1];
            document.getElementById("loadingInfo").innerHTML = decodeURI(errorText);
        } else {
            document.getElementById("loadingInfo").innerHTML = "分配节点过程中出现了一些错误...";
        }
    });
</script>
</body>
</html>